package com.zc.campus_shops.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.zc.campus_shops.entity.ProductCategory;

//商品类别接口
public interface ProductCategoryDao {
	/**
	 * 通过shopId 查找商品类别
	 * @param shopId
	 * @return
	 */
	
	List<ProductCategory> queryProductCategoryList(long shopId);

	/**
	 * 新增店铺类别
	 * @param productCategoryList
	 * @return
	 */
	int batchInsertProductCategory(List<ProductCategory> productCategoryList);
	
	/**
	 * 删除店铺类别
	 * @param productCategoryId
	 * @param shopId
	 * @return
	 */
	int deleteProductCategory(@Param("productCategoryId") long productCategoryId,@Param("shopId") long shopId);
}
